package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.domain.Menu;
import org.example.service.MenuService;
import org.example.mapper.MenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 24698
* @description 针对表【sys_menu】的数据库操作Service实现
* @createDate 2024-04-20 09:59:58
*/
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu>
    implements MenuService{

    @Autowired
    MenuMapper menuMapper;

    @Override
    public List<Menu> getList() {
        return menuMapper.getList();
    }

    @Override
    public List<Menu> getListByid(Integer id) {
        return menuMapper.getListByid(id);
    }
}




